#define _CRT_SECURE_NO_WARNINGS  1
#pragma warning(disable:6031)

#include <stdio.h>

void Decimal_to_binary(int num)
{
	if (num < 2)
	{
		if (num == 1)
		{
			printf("%d", num);
		}
	}
	else
	{
		Decimal_to_binary(num / 2);
		printf("%d", num % 2);
	}
}
int main()
{
	int num = 0;
	while (scanf("%d", &num) == 1)
	{
	Decimal_to_binary(num);
	printf("\n");
	}
	return 0;
}